<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>这是分类展示页面</h1>
<div id="d1">
    <input type="text" v-model="cid" placeholder="输入id">
    <input type="submit" value="提交" @click="select(cid)">
</div>
</body>
<script src="js/vue.js"></script>
<script src="js/eui.js"></script>
<script src="js/axios.min.js"></script>
<script>
     let v = new Vue({
        el:"#d1",
        data:{
            cid:""
        },
        methods:{
            select(cid){
                axios.get("/product/select/category?cid="+cid).then(function (response){
                    alert(response.data);
                })
            }
        }
    })
</script>
</html>